package com.loooooo.pm2024.config;

import org.springframework.stereotype.Component;

@Component
public class Settings {

    private static String tokenKey = "c2023_hz#adads_d54";//"c2023_hz#adads_d54";//jinhu@cas-50603202.
    private static String casTokenKey = "jinhu@cas-50603202.";//"c2023_hz#adads_d54";//jinhu@cas-50603202.

    private static String host;

    private static String wechatAccessToken;

    public static String getHost() {
        return host;
    }

    public static String getHost(String defaultValue) {
        return host == null ? defaultValue : host;
    }

    public static void setHost(String host) {
        Settings.host = host;
    }

    public static String getWechatAccessToken() {
        return wechatAccessToken;
    }

    public static void setWechatAccessToken(String wechatAccessToken) {
        Settings.wechatAccessToken = wechatAccessToken;
    }

    public static String getTokenKey() {
        return tokenKey;
    }

    public static void setTokenKey(String tokenKey) {
        Settings.tokenKey = tokenKey;
    }

    public static final Integer APPID_POINTCARD = 1001;
    public static final Integer APPID_CARD = 1002;

    public static String PDD_CLIENT_SECRET = "wJKzzs0D1HV7V76M";

    public static String getCasTokenKey() {
        return casTokenKey;
    }

    public static void setCasTokenKey(String casTokenKey) {
        Settings.casTokenKey = casTokenKey;
    }

    public static void main(String[] args) {
        String s = "\u9519\u8BEF \u8BF7\u8054\u7CFB\u5BA2\u670D";
        System.out.println(s);

    }
}
